<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="备份前准备">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="hive_00007.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="hive_00010">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>备份前准备</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="hive_00010"></a><a name="hive_00010"></a>
  <h1 class="topictitle1">备份前准备</h1>
  <div>
   <p>备份Hive集群前，请参考以下内容提前准备相关信息。</p>
   <ul>
    <li><a href="#hive_00010__table481544017344">表1</a>为必须获取的信息。</li>
    <li><a href="#hive_00010__table17163125610819">表2</a>为Hive集群与<span>本产品</span>通信的认证模式为<span class="uicontrol">“<span>Simple认证</span>”</span>时，才需要获取的信息。</li>
    <li><a href="#hive_00010__table8758104318915">表3</a>为Hive集群与<span>本产品</span>通信的认证模式为<span class="uicontrol">“<span>Kerberos认证</span>”</span>时，才需要获取的信息。</li>
   </ul>
   <div class="tablenoborder">
    <a name="hive_00010__table481544017344"></a><a name="table481544017344"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="hive_00010__table481544017344" frame="border" border="1" rules="all">
     <caption>
      <b>表1 </b>备份前准备
     </caption>
     <colgroup>
      <col style="width:18.3%">
      <col style="width:14.63%">
      <col style="width:50.73%">
      <col style="width:16.34%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="18.3%" id="mcps1.3.3.2.5.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="14.63%" id="mcps1.3.3.2.5.1.2"><p>是否必须</p></th>
       <th align="left" class="cellrowborder" valign="top" width="50.73%" id="mcps1.3.3.2.5.1.3"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="16.34%" id="mcps1.3.3.2.5.1.4"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="18.3%" headers="mcps1.3.3.2.5.1.1 "><p>hive-site.xml</p></td>
       <td class="cellrowborder" valign="top" width="14.63%" headers="mcps1.3.3.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" rowspan="4" valign="top" width="50.73%" headers="mcps1.3.3.2.5.1.3 "><p>具体获取方式请参见<a href="hive_00015.html#hive_00015__section10758914153313">前提条件</a>。</p> <p></p> <p></p> <p></p> <p></p></td>
       <td class="cellrowborder" rowspan="5" valign="top" width="16.34%" headers="mcps1.3.3.2.5.1.4 "><p><a href="hive_00015.html">步骤3：注册Hive集群</a></p> <p></p> <p></p> <p></p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.1 "><p>hdfs-site.xml</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.2 "><p>必选</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.1 "><p>core-site.xml</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.2 "><p>必选</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.1 "><p>hiveclient.properties</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.2 "><p>必选</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.1 "><p>Hive版本号</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.5.1.3 "><p>具体获取方式请参见<a href="hive_00015.html#hive_00015__li0580145917135">2.a</a></p></td>
      </tr>
     </tbody>
    </table>
   </div>
   <div class="tablenoborder">
    <a name="hive_00010__table17163125610819"></a><a name="table17163125610819"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="hive_00010__table17163125610819" frame="border" border="1" rules="all">
     <caption>
      <b>表2 </b>Simple认证所需信息
     </caption>
     <colgroup>
      <col style="width:19.41%">
      <col style="width:13.52%">
      <col style="width:50.73%">
      <col style="width:16.34%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="19.41%" id="mcps1.3.4.2.5.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="13.52%" id="mcps1.3.4.2.5.1.2"><p>是否必须</p></th>
       <th align="left" class="cellrowborder" valign="top" width="50.73%" id="mcps1.3.4.2.5.1.3"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="16.34%" id="mcps1.3.4.2.5.1.4"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="19.41%" headers="mcps1.3.4.2.5.1.1 "><p>认证用户名</p></td>
       <td class="cellrowborder" valign="top" width="13.52%" headers="mcps1.3.4.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" width="50.73%" headers="mcps1.3.4.2.5.1.3 "><p>请向大数据平台管理员获取。</p>
        <div class="note">
         <span class="notetitle"> 说明： </span>
         <div class="notebody">
          <p>用户名需要对要访问的资源具备读写权限。</p>
         </div>
        </div></td>
       <td class="cellrowborder" valign="top" width="16.34%" headers="mcps1.3.4.2.5.1.4 "><p><a href="hive_00015.html">步骤3：注册Hive集群</a></p></td>
      </tr>
     </tbody>
    </table>
   </div>
   <div class="tablenoborder">
    <a name="hive_00010__table8758104318915"></a><a name="table8758104318915"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="hive_00010__table8758104318915" frame="border" border="1" rules="all">
     <caption>
      <b>表3 </b>Kerberos认证所需信息
     </caption>
     <colgroup>
      <col style="width:19.41%">
      <col style="width:13.51%">
      <col style="width:50.739999999999995%">
      <col style="width:16.34%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="19.41%" id="mcps1.3.5.2.5.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="13.51%" id="mcps1.3.5.2.5.1.2"><p>是否必须</p></th>
       <th align="left" class="cellrowborder" valign="top" width="50.739999999999995%" id="mcps1.3.5.2.5.1.3"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="16.34%" id="mcps1.3.5.2.5.1.4"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="19.41%" headers="mcps1.3.5.2.5.1.1 "><p><span>HiveServer2 Principal</span></p></td>
       <td class="cellrowborder" valign="top" width="13.51%" headers="mcps1.3.5.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" width="50.739999999999995%" headers="mcps1.3.5.2.5.1.3 "><p>从hiveclient.properties文件中获取，<span class="uicontrol">“principal”</span>参数的值即为此处的配置值。</p></td>
       <td class="cellrowborder" rowspan="6" valign="top" width="16.34%" headers="mcps1.3.5.2.5.1.4 "><p><a href="hive_00015.html">步骤3：注册Hive集群</a></p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>校验证书</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>可选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>仅当大数据平台为Cloudera CDH时，并且您希望<span>本产品</span>与大数据平台通信过程中进行数据加密，实现安全通信，那么需要获取该证书。</p> <p>获取方式请参见<a href="hive_00014.html">步骤2：（可选）生成并获取证书</a>。</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>Kerberos认证的主体名</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>请向Kerberos服务器管理员获取主体名。</p>
        <div class="note">
         <span class="notetitle"> 说明： </span>
         <div class="notebody">
          <ul>
           <li>该主体名需要对备份的数据库具备SHOW_DATABASE权限，对备份的表具备SELECT权限，对恢复的数据库具备CREATE和SHOW_DATABASE权限，对恢复的表具备CREATE、DROP、ALTER和SELECT权限。</li>
           <li>该主体名需要对创建备份集时指定的元数据临时存储路径具备读、写和执行权限，对备份的数据库表的数据所在的目录及下层文件和目录具有读和执行权限，对恢复时指定的元数据临时存储路径具备读、写和执行权限，对恢复到目标数据库表的数据所在的目录具有读、写和执行权限，对表元数据、表数据所在目录具备读、写和执行权限。</li>
          </ul>
         </div>
        </div></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>Kerberos认证过程中使用的<span class="filepath">“.conf”</span>配置文件（如：krb5.conf）</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>请联系Kerberos服务器管理员从Kerberos服务器获取该文件。</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p>主体名的密码</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>可选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>当Kerberos认证是通过密码方式认证的，需要获取主体名的密码。</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.1 "><p><span class="filepath">“.keytab”</span>文件</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.2 "><p>可选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.5.2.5.1.3 "><p>当Kerberos认证是通过keytab文件方式认证的，需要获取<span class="filepath">“.keytab”</span>文件。</p> <p>请联系Kerberos服务器管理员从Kerberos服务器获取该文件。</p></td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="hive_00007.html">备份</a>
    </div>
   </div>
  </div>
 </body>
</html>